package cn.stacey.day02;

import java.math.BigDecimal;

public class DemoSeries {
	public static void main(String[] args) {
		int n = 1;
		int sum = 0;
		long multipy = 1;
		BigDecimal b = new BigDecimal("1");
		
		while (n <= 100) {
			sum += n;
			multipy *= n;
			b = b.multiply(new BigDecimal(n));
			n++;
		}
		
		System.out.println(sum);
		System.out.println(multipy);
		System.out.println(b);
		
	}
}
